{% load static %}
<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>login</title>
    <link rel="stylesheet" type="text/css" href="{% static 'tickets/CSS/login.css' %}">
</head>

<body>
    <div class="bg">
    </div>
    <h1>盛贵加才铁路</h1>
    <div class="container right-panel-active ">
        <!-- 注册 -->
        <div class="container__form container--signup">
            <form action="/tickets/regist" class="form" id="form_register" method="POST">
                {% csrf_token %}
                <h2 class="form__title ">注册账号</h2>
                <input type="text" placeholder="账号"     class="input" name="useracut">
                <input type="password" placeholder="密码" class="input" name="userpswd">
                <input type="text" placeholder="姓名"     class="input" name="username">
                <input type="text" placeholder="身份证"   class="input" name="usercard">
                <input type="tel" placeholder="手机号"    class="input" name="userphne">
                <div class="input-phone">
                    <input name="smscode" type="text" class="input-phoneNum" id="smscode" placeholder="请输入验证码">
                    <button class="input-btn">发送验证码</button>
                </div>
                
                <button class="btn" type="button" onclick="presubmit(0)">点击注册</button>
                <!-- <a href="../html/about.html" class="link">关于我们</a> -->
            </form>

        </div>
        <!-- 登录 -->
        <div class="container__form container--signin">
            <form action="/tickets/login" class="form" id="form_login" method="POST">
            {% csrf_token %}
                <!-- "demo-login.php" -->
                <h2 class="form__title">登录账号</h2>
                <input type="text" placeholder="账号" class="input" id="account_login" name="lginacut">
                <input type="password" placeholder="密码" class="input" id="psw_login" name="lginpswd">
                <button class="btn" type="button" onclick="presubmit(1)">点击登录</button>
                图形验证码 {{ form.captinput }}
                <a href="{% url 'tickets:forget' %}" class="link">忘记密码</a>
            </form>
        </div>
        <div class="container__overlay">
            <div class="overlay">
                <div class="overlay__panel overlay--right">
                    <button class="btn" id="signIn">直接登录</button>
                </div>
                <div class="overlay__panel overlay--left">
                    <button class="btn" id="signUp">直接注册</button>
                </div>
            </div>
        </div>
    </div>
    <footer>
        <p>
            Created with <i class="fa fa-heart"></i> by
            <a  href="{% url 'tickets:about' %}">盛贵加才</a>
            <!-- - Read how I created this and how you can join the challenge
            <a target="_blank" href="#">here</a>. -->
        </p>
    </footer>
</body>
<script src="{% static 'tickets/JS/login.js' %}"></script>
<script src="{% static 'tickets/JS/myFunctions.js' %}"></script>
</html>